import { IsNumber, IsOptional, IsString } from "class-validator";

export class CreateDeptTypeDto {
    @IsString()
    name!: string;

    @IsOptional()
    @IsString()
    icon!: string | null;

    @IsOptional()
    @IsString()
    remark!: string | null;

    @IsNumber({}, { each: true })
    cascadeLevel!: number[];
}
